﻿using System.Windows;
using Microsoft.Practices.Unity;

namespace APRESS.TimeTracker.Services
{
    public class NavigationService : INavigationService
    {
        [Dependency]
        public IDialogService DialogService { get; set; }

        [Dependency]
        public IUnityContainer Container { get; set; }

        public bool ConfirmClose()
        {
            return DialogService.AskConfirmation("Close TimeTracker.", "Do you want to close TimeTracker?");
        }

        public Window ShowMainWindow()
        {
            var mainWindow = Container.Resolve<MainWindow>();
            mainWindow.Show();
            return mainWindow;
        }

        public Window ShowLoginWindow()
        {

            return null;
        }
    }
}
